package com.iotstudio.embeddedcloudplatform.POJO.DTO;

import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import lombok.Data;

import java.util.Date;
import java.util.List;

/**
 * 用户信息，包含角色和权限信息
 * @author BeFondOfTaro
 * Created in 19:02 2018/1/18
 */
@Data
public class UserDTO {
    private String id;

    private String username;//用户名

    private String realName;//真实姓名

    private String email;//邮箱

    private String phone;//电话

    private String address;//住址

    @JsonSerialize(using = com.iotstudio.embeddedcloudplatform.util.serializer.Date2LongSerializer.class)
    private Date createTime;//创建时间

    @JsonSerialize(using = com.iotstudio.embeddedcloudplatform.util.serializer.Date2LongSerializer.class)
    private Date updateTime;//修改时间

    @JsonSerialize(using = com.iotstudio.embeddedcloudplatform.util.serializer.Date2LongSerializer.class)
    private Date lastTime;//最后一次登录时间

    private List<RoleDTO> roleDTOList;//角色列表
}
